package org.lex.ftp.ui.queue.actions;

import java.awt.event.ActionEvent;

import org.lex.ftp.FTP;
import org.lex.ftp.ui.actions.FTPAction;

public class ClearQueueAction extends FTPAction {
	public ClearQueueAction(FTP app) {
		super(app);
		this.setName("Clear");
	}

	public void actionPerformed(ActionEvent e) {
		if (true == this.confirm("Clear Queue", "Are you sure to delete all tasks?")) {
			app.getQueue().clear();
		}
	}
}
